package ganga.custodian.tests;

import ganga.custodian.plot.PlotActivity;

import java.util.Vector;

import junit.framework.TestCase;

public class PlotTest extends TestCase{
	PlotActivity plot = new PlotActivity();
	double array[] = {1, 2};
	
	public void testVector() {
		assertNotNull(plot.arrayToVector(array));
		assertEquals(plot.arrayToVector(array).firstElement(), 1.0);
		assertEquals(plot.arrayToVector(array).lastElement(), 2.0);
	}
	public void firstAndLastVectorElementTest() {
		assertEquals(plot.arrayToVector(array).firstElement(), 1.0);
		assertEquals(plot.arrayToVector(array).lastElement(), 2.0);
	}
}
